<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
<style> form { display : inline ; } </style>
<style type="text/css">
div#condiv1{margin-left: 15px; }
div#condiv2{margin-right: 15px; }
</style>
<!--[if IE 6]>
<style type="text/css">
div#condiv1{margin-left: 7px; }
div#condiv2{margin-right: 7px; }
</style>
<![endif]-->
<script type="text/javascript">
/*
//모든 체크 박스 선택 & 해제(컨테이너)
function selectAllCon(){
	 var checkAll=document.getElementsByName("checkAllCon")[0];
	 var check;
	  if(checkAll.checked)
	   check=true;
	  else
	   check=false;

	 var objElements = document.getElementsByName("checkCon");
	 var chboxSize=objElements.length;
	 

	 if(objElements == null){
	 
	  return;
	 }else if(chboxSize<1)

	 {
	  alert("체크 가능한 목록이 없습니다.");
	 }else{
	 
	 
	   for(var i = 0; i<chboxSize;i++)
	   {
	    objElements[i].checked=check;
	   }
	 }
}

//삭제 (컨테이너)
function riskIDeleteCon(){
	//alert(document.forms[0].name);
	//document.forms[0] == 가장 먼저 쓰인 폼 값을 받음.
	var checkArray=document.getElementsByName("checkCon"); //배열로 인식
	var flag=false;
	for(i=0;i<checkArray.length;i++){
		//alert(i+" :"+checkArray[i].checked); // 돌리면서 체크가 되있으면 ture 안되있으면 false 출력
		if(checkArray[i].checked){ // checkarray 가 true면
			flag=true;
			break;
		}
	}
	if(!flag){
			alert("체크박스를 선택해주세요"); // flag가 ture가 아닐때 alert 출력
			return;
	}
	var flag=confirm("삭제하시겠습니까?");
	if(flag){
		document.forms[1].submit();
	}	
}	
*/
/*
function fileupload(){
var form=document.forms[0];
	//form.submit();
	form.file.click();
}
*/
$(function(){
	$("input[type=file]").filestyle({ 
	    image: "img/choose-file.gif",
	    imageheight : 22,
	    imagewidth : 82,
	    width : 100
	});
});
</script>

<script type="text/javascript">  
//텝 메뉴 실행
$(function(){
	$( "#tabs" ).tabs(); 
}); 

//onclick시 이동관련
$(function(){
$('ul.tab-menu li a').click(function() {
    //alert($(this).attr('href'));
    location.href=$(this).attr('href');
});
}
); 
</script>  

<script type="text/javascript">
function scrollAll() {
	document.getElementById("leftDisplay").scrollTop = document.getElementById("mainDisplay").scrollTop;
	document.getElementById("topLine").scrollLeft = document.getElementById("mainDisplay").scrollLeft;
}
</script>
<style> 
table.main_table {
  border           : solid;
  border-width     : 0px 0px 0px 0px;
  text-align       : center;
  table-layout     : fixed;
}
.main_head {
  background-color : yellow;
}
.main_body {
  background-color : #FFFFFF;
}
table.table-short2 {table-layout: fixed; border-collapse:collapse;}
table.table-short2 td {border-top:1px solid #dfdfdf; font-size:0.9em; padding:4px 2px; margin:0; color:#666;}
table.table-short2 thead td {border-top:none; background-color: #5c6467; color: #fff;  padding:4px 2px;}
table.table-short2 thead td.side {border-top:1px solid #5c6467; background-color: #5c6467; color: #fff;  padding:4px 2px;}
</style>
</head>
<body onload="javascript: claerContData(); onloadTracont2List('${sessionScope.magamSession[0].state}');">
<div class="box1">
  <div id="tabs">

       <ul class="tab-menu">

           <li><a href="#tabs-1" class="t1">RA정보식별</a></li>

           <li><a href="#tabs-2" class="t2">RA정보-컨테이너현황</a></li>
           
           <li><a href="#tabs-3" class="t3 ">RA정보평가</a></li>

       </ul>
<!-- RA 정보식별 시작 -->
<div id="tabs-1" style="display:none">

      		<h4 class="white" >
      		<span class="align-left">RA정보식별</span>
      		<span class="align-right">상태 :
	      		<c:choose>
	      			<c:when test="${sessionScope.magamSession[0].state =='Y'}">
	      				 마감
	      			</c:when>
	      			<c:otherwise>
	      				 착수
	      			</c:otherwise>
	      		</c:choose>
      		</span>
      		
      		</h4>
        <div class="box-container1">     		
        	<table class="table-long">
      			<tfoot>
      				<tr>
      					<td>
      						<div class="align-left subjectTitle"> ■ RA정보목록</div>
      						<!-- 검색 -->
      						<div class="align-left" style="margin-left: 160px">
	      						<span style="width: 22px; height: 22px; background: url('img/icon-view-info.gif') no-repeat scroll right center transparent;  overflow: hidden;display:inline-block;"></span>
	      						<span style="vertical-align: top"><input name="searchText" type="text" id="searchText" style="width:140px;" value="${param.searchText }"/></span>
	      						<span ><a href="#" class="button rightNoMargin verticTop" onclick="searchText('mrainfo')"><span>조회</span></a></span>
      						</div>
                        </td>
      				</tr>
      				<tr>
      					<td>
      						<div class="align-left"><a href="#" class="button1 firstButton"><span style="font-size: small; font-weight:normal;">전체 : ${fn:length(list)}</span></a></div>
                        	<div class="align-right" style="height: 21px">
                        	<form method="post" name="f1" enctype="multipart/form-data">
                        	<input type="hidden" name="reloadPageName"  value="mrainfo"></input>
	                        	<c:choose>
	                        		<c:when test="${sessionScope.magamSession[0].state !='Y'}">
	                        		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
	                        		<%--
	                        		<input type="file" name="file"></input><a href="#" class="button"  onclick="fileupload()"><span>엑셀업</span></a>
	                        		--%>
	                        		<input type="file" name="file" class="disable" onchange="extCheck(1);"></input><a href="#" class="button" ><span>엑셀업</span></a> 

	                        			<a href="riskIAction.do?mode=exmrainfo&searchText=${param.searchText }" class="button"><span>엑셀</span></a> 
	                        			<a href="#" class="button" onclick="javascript: riskIWritePage('mrainfo_insertPage'); return false" ><span>추가</span></a>
	                        			<a href="#" class="button lastButton" onclick="javascript: riskIDelete1()"><span>삭제</span></a>
	                        		</c:when>
	                        		<c:otherwise>
	                        			<input type="file" name="file" class="disable" disabled="disabled" style="cursor: default;"></input><a href="#" class="button1 addMargin"  onclick="return false;"><span>엑셀업</span></a>
	                        			
	                        			<a href="riskIAction.do?mode=exmrainfo&searchText=${param.searchText }" class="button"><span>엑셀</span></a> 
	                        			<a href="#" class="button1 addMargin" onclick="return false" ><span>추가</span></a>
	                        			<a href="#" class="button1 lastButton addMargin" onclick="return false"><span>삭제</span></a>
	                        		</c:otherwise>
	                        	</c:choose>
                        	</form>
                        	
                        	</div>
      					</td>
      				</tr>
      				<tr><td class="spaceLine"></td></tr>
      			</tfoot>
      		</table>
      		<table class="table-long">
      			<colgroup>
				<!-- ie67인지 아닌지 판단 (위=ie)(아래는 그외)--> 
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="46px"/>
							<col width=""/>
							<col width="9%"/>
							<col width="9%"/>
							<col width=""/>
							<col width=""/>
							<col/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="45px"/>
							<col width=""/>
							<col width="9%"/>
							<col width="9%"/>
							<col width=""/>
							<col width=""/>
							<col/>
							<col width="15px"/>
						</c-rt:otherwise>
					</c-rt:choose>				
				</colgroup>
      			<thead>
      				<tr>
      					<td class="col-chk"><input type='checkbox' name='checkAll1' onclick="javascript: selectAll1()" class="chkCursor" ></input></td>
      					<td class="col-rowspanMid">정보명칭</td>
      					<td class="col-rowspanMid">RM 담당자</td>
      					<td>정보소유자</td>
      					<td>연관프로세스</td>
      					<td>지역사이트</td>
      					<td>정보기술서</td>
      					<td></td>
      				</tr>
      			</thead>
      		</table>
      		<form name="riskIDelForm1" action="riskIAction.do" method="post">
        	<input type="hidden" name="mode" value="mrainfo_delete"/>
        	<input type="hidden" name="pro_id" id="pro_id" value="${sessionScope.lastProId }"/>
      		<div class="scrollDIV" style="height: 166px;">
      		<table class="table-long" id="countTrTable">
      			<colgroup>
				<c-rt:choose>
					<c-rt:when test="${isMSIE67}">
						<col width="46px"/>
						<col width=""/>
						<col width="9%"/>
						<col width="9%"/>
						<col width=""/>
						<col width=""/>
						<col/>
						<col width="15px"/>
					</c-rt:when>
					<c-rt:otherwise>
						<col width="45px"/>
						<col width=""/>
						<col width="9%"/>
						<col width="9%"/>
						<col width=""/>
						<col width=""/>
						<col/>
						<col width="15px"/>
					</c-rt:otherwise>
				<%--
					<c-rt:when test="${isMSIE67}">
						<col width="46px"/>
						<col width="61px"/>
						<col width="61px"/>
						<col width="101px"/>
						<col width="61px"/>
						<col width="61px"/>
						<col/>
						<col width="15px"/>
					</c-rt:when>
					<c-rt:otherwise>
						<col width="45px"/>
						<col width="70px"/>
						<col width="70px"/>
						<col width="110px"/>
						<col width="70px"/>
						<col width="70px"/>
						<col/>
						<col width="15px"/>
					</c-rt:otherwise>
					 --%>
				</c-rt:choose>
			</colgroup>
      			<tbody>
      				<c:choose>
                    	<c:when test="${fn:length(list)!= 0}">
                       	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
	                    			<%--
	                    			<tr id="trArea${status.index+1 }" onclick="javascript: changeCon('${list.rainfo_id}'); onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');" class="odd">
	                    			
	                    			<tr id="trArea${status.index+1 }" onclick="javascript: changeCon('${list.rainfo_id}');" <c:if test="${status.index%2==0 }">class="odd"</c:if>>
	                    			 --%>
	                    			 <tr id="trArea${status.index+1 }" <c:if test="${status.index%2==0 }">class="odd"</c:if> onclick="javascript: setRaIdNm('${list.rainfo_id}','${list.rainfo_nm }','${sessionScope.magamSession[0].state }'); ChangeBackground(this,'click','${status.index}');" onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');">
		                    			<td class="col-chk"><input type="checkbox" name="check1" id="check10${status.index+1 }"  value='${list.rainfo_id}' class="chkCursor"></input></td>
		                    			<%--
		                    			<td>
		                    				<div class="ellipsis" style="width:100%;" title="${list.rainfo_id }">${list.rainfo_id }</div>
		                    			</td>
		                    			 --%>
		                    			<td>
                    					<!-- ie6에서 한글 깨짐 방지를 위한 전달 방법 -->
		                    			<c:url var="url" value="riskIAction.do">
		                    				<c:param name="mode" value="mrainfo_updatePage"/>
										    <c:param name="rainfo_id" value="${list.rainfo_id }"/>
										</c:url>
		                    				<div class="ellipsis"  style="width:100%;">
		                    				<a href="<c:out value="${url}"/>" class="nor ellipsis" title='${list.rainfo_nm }'>${list.rainfo_nm }</a>
		                    				</div>
		                    			</td>
		                    			<%--
		                    			<td>
		                    				<div class="ellipsis" style="width:100%;" title="${list.rainfo_date }">${list.rainfo_date }</div>
		                    			</td>
		                    			<td>
		                    				<div class="ellipsis" style="width:100%;" title="${list.rainfo_ver }">${list.rainfo_ver }</div>
		                    			</td>
		                    			 --%>
		                    			<td>
		                    				<div class="ellipsis" style="width:100%;"  title="${list.rainfo_writer }">${list.rainfo_writer }</div>
		                    			</td>
		                    			<td>
		                    				<div class="ellipsis" style="width:100%;" title="${list.rainfo_owner }">${list.rainfo_owner }</div>
		                    			</td>
		                    			<td>
		                    				<div class="ellipsis" style="width:100%;" title="${list.rainfo_proc }">${list.rainfo_proc }</div>
		                    			</td>
		                    			<td>
		                    				<div class="ellipsis" style="width:100%;" title="${list.rainfo_site }">${list.rainfo_site }</div>
		                    			</td>
		                    			<td>
		                    				<div class="ellipsis" style="width:100%;" title="${list.rainfo_doc }">${list.rainfo_doc }</div>
		                    			</td>
			   					 	<td></td>
		                    		</tr>
                    	</c:forEach>
                    	</c:when>
                    	<c:otherwise>
                    		<tr class="odd">
								<td colspan="8" class="noDataTD">-데이터가 없습니다-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
      			</tbody>
      		</table>  
      		</div>	
      		</form>
      	</div><!-- end of div.box-container1 -->
      	
      	<div class="align-right" style="height: 21px">
               	<form method="post" name="f2" enctype="multipart/form-data">
               	<input type="hidden" name="reloadPageName"  value="mrainfoCon"></input>
                	<c:choose>
                		<c:when test="${sessionScope.magamSession[0].state !='Y'}">
                		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
                		<%--
                		<input type="file" name="file"></input><a href="#" class="button"  onclick="fileupload()"><span>엑셀업</span></a>
                		--%>
                		<input type="file" name="file" class="disable" onchange="extCheck(2);"></input><a href="#" class="button" ><span>엑셀업</span></a> 

                		
                		</c:when>
                		<c:otherwise>
                			<input type="file" name="file" class="disable" disabled="disabled" style="cursor: default;"></input><a href="#" class="button1 addMargin"  onclick="return false;"><span>엑셀업</span></a>
                		</c:otherwise>
                	</c:choose>
               	</form>
       	</div>
      	
      	
      	<form name="tracontForm" action="riskIAction.do" method="post">
        <input type="hidden" name="conPro_id" id="conPro_id" value="${sessionScope.lastProId }"></input>
        <input type="hidden" name="rainfo_id" id="rainfo_id"></input>
        <%--
        <input type="hidden" name="rainfo_nm" id="rainfo_nm"></input>
         --%>
        <input type="hidden" name="base_lev1" id="base_lev1"></input>
      	 <div class="box-container1">
	      	 	 <table class="table-long" style="width: 700px">
					<tfoot>
	      				<tr>
	      					<td>
	    						<div class="align-left subjectTitle">● RA정보 컨테이너&nbsp;</div>
	    						<%--
	                        	<div class="align-right"><a href="#" class="button" onclick="javascript: riskIDeleteCon()"><span>삭제</span></a></div>
	                        	 --%>
	                        	 <div class="align-left subjectTitle" id="rainfoID_div" style="display: none"> - <span id="rainfoID" class="blue"></span></div>
	                        </td>
	      				</tr>
	      			</tfoot>
				</table>
				<table class="insertTableL" style="width: 710px">
					<colgroup>
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
			   				<col width="50px"/>
			   				<col width="130px"/>
			   				<col width="60px"/>
			   				<col width="130px"/>
			   				<col width="30px"/>
			   				<col width=""/>
		   				</c-rt:when>
		   				<c-rt:otherwise>
			   				<col width="70px"/>
			   				<col width="130px"/>
			   				<col width="80px"/>
			   				<col width="130px"/>
			   				<col width="50px"/>
			   				<col width=""/>
		   				</c-rt:otherwise>
		   			</c-rt:choose>
		   			</colgroup>
	      			<tbody>
	      				<tr>
	      					<td class="titleNameCenter">자산유형</td>
	      					<td>
	      						<input type="text" name="ak_nm2" id="ak_nm2" maxlength="30" style="width: 75%" readonly="readonly"></input>
								 <a href="#"  onclick="javascript: openConList()" class="table-edit-link" style="margin-left: 5px; margin-right: 0">&nbsp;</a>
	      					</td>
	      					<td class="titleNameCenter">컨테이너명</td>
	      					<td>
								<input type="text" name="racont_nm" id="racont_nm" maxlength="30"  style="width: 95%" onkeyup="javascript: inputCheckSpecial(this)"></input>
							</td>
							<td class="titleNameCenter">구분</td>
							<td>
								<input type="radio" name="choice" id="choice1" value="1"></input><label for="choice1"  class="chkCursor">공통</label>
								<input type="radio" name="choice" id="choice2" value="2" checked="checked"></input><label for="choice2"  class="chkCursor">개별</label>
								
								<c:choose>
	                        		<c:when test="${sessionScope.magamSession[0].state !='Y'}">
	                        		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
	                        			<a href="#" class="button" onclick="tracont1_insertAjax('${sessionScope.magamSession[0].state}'); return false;"><span>저장</span></a>
		                     			<a href="#" class="button" onclick="javascript: claerContData()"style="margin: 0"><span>취소</span></a>
	                        		</c:when>
	                        		<c:otherwise>
	                        			<a href="#" class="button1 addMargin" onclick="return false" ><span>저장</span></a>
	                        			<a href="#" class="button1" onclick="return false;"style="margin: 0"><span>취소</span></a>
	                        		</c:otherwise>
	                        	</c:choose>
	                        	
							</td>
	      				</tr>
	      			</tbody>
				</table>
			<div class="box-container3 align-left" style="width: 47%; height: 166px;" id="condiv1">
				<table class="table-short1" style="width: 100%;">
		   			<colgroup>
		   				<col width="240px"/>
		   				<col/>
		   				<col width="15px"/>
		   			</colgroup>
		   			<thead>
		   				<tr>
		   					<td style="padding-left: 10px">컨테이너명</td>
		   					<td style="padding-left: 20px">
		   						공통
		   					</td>
		   					<td></td>
		   				</tr>
		   			</thead>
		   		</table>
		   		<div id="racontPublicListDivData" style="overflow:auto; overflow-x: hidden; width: 100%; height: 163px;">
		   		<%--
	      		<table class="table-short1" style="width: 100%; margin-left: 5px;">
	      			<colgroup>
						<col width="60%"/>
		   				<col/>
		   				<col width="15px"/>
					</colgroup>
	      			<tbody>
	      				<c:choose>
	                    	<c:when test="${fn:length(contList2)!= 0}">
	                       	<c:forEach var="contList2" items="${requestScope.contList2}" varStatus="status">
		                    	<tr <c:if test="${status.index%2==0 }">class="odd"</c:if>>
		                    	
	                    			<td>
	                    				<div class="ellipsis"  style="width:100%;" title="${contList2.racont_nm}">${contList2.racont_nm }</div>
	                    			</td>
	                    			<td>
	                    				<a href="#" class="button" onclick="javascript: riskIDeleteCon()"><span>삭제</span></a>
	                    			</td>
		   					 	<td></td>
	                    		</tr>
		                    		
	                    	</c:forEach>
	                    	</c:when>
	                    	<c:otherwise>
	                    		<tr class="odd">
									<td style="text-align: center; height: 35px ; vertical-align: middle; " colspan="3" valign="middle" class="col-first">-공통 컨테이너값이 없습니다-</td>
								</tr>
	                    	</c:otherwise>
	                    	</c:choose>
	      			</tbody>
	      		</table>  
	      		 --%>	
	      		</div>
			
			</div>
			<div class="box-container3 align-right" style="width: 47%; height: 166px;" id="condiv2">
				<div style="display: "  id="racontListDiv">
					<table class="table-short1" style="width: 100%;">
			   			<colgroup>
			   				<col width="190px"/>
			   				<col/>
			   				<col width="15px"/>
			   			</colgroup>
			   			<thead>
			   				<tr>
			   					<td style="padding-left: 10px">컨테이너명</td>
			   					<td style="padding-left: 45px">
			   						개별
			   					</td>
			   					<td></td>
			   				</tr>
			   			</thead>
			   		</table>
			   	<div id="racontListDivData" style="overflow:auto; overflow-x: hidden; width: 100%; height: 163px;">
			   	<table class="table-short1" style="width: 100%;">
			   		<colgroup>
			   				<col width="95px"/>
			   				<col/>
			   				<col width="15px"/>
			   			</colgroup>
				    <tr class="odd">
						<td class="noDataTD" colspan="3">-정보 목록을 선택해주시기바랍니다-</td>
					</tr>
				</table>
				</div>
				<%--
			   		<div  style="overflow:auto; overflow-x: hidden; width: 100%; height: 176px;">
		      		<table class="table-short1" style="width: 100%; margin-left: 5px;">
		      			<colgroup>
							<col width="45%"/>
			   				<col/>
			   				<col width="15px"/>
						</colgroup>
		      			<tbody>
		      				<c:choose>
		                    	<c:when test="${fn:length(contList1)!= 0}">
		                       	<c:forEach var="contList1" items="${requestScope.contList1}" varStatus="status">
			                    	<tr <c:if test="${status.index%2==0 }">class="odd"</c:if>>
			                    	
		                    			<td>
		                    				<div class="ellipsis"  style="width:100%;" title="${contList1.racont_nm}">${contList1.racont_nm }</div>
		                    			</td>
		                    			<td>
		                    				<a href="#" class="button" onclick="javascript: riskIDeleteCon()" style="margin:0 1px;"><span>공통</span></a><a href="#" class="button" onclick="javascript: riskIDeleteCon()" style="margin:0 1px;"><span>삭제</span></a>
		                    			</td>
			   					 	<td></td>
		                    		</tr>
		                    	</c:forEach>
		                    	</c:when>
		                    	<c:otherwise>
		                    		<tr class="odd">
										<td style="text-align: center; height: 35px ; vertical-align: middle; " colspan="3" valign="middle" class="col-first">-컨테이너값이 없습니다-</td>
									</tr>
		                    	</c:otherwise>
		                    	</c:choose>
		      			</tbody>
		      		</table>
		      		</div>
		      		 --%>
	      		</div>
			</div>
			<%--
			<div class="box-container3" style="width: 33%; height: 176px;">
			<div style="display: "  id="racontInsertDiv">
				<table class="insertTable" style="width: 98%;">
				    <colgroup>
		   				<col width="30%"/>
		   				<col width="70%"/>
		   			</colgroup>
		   			<tbody>
		   				<tr>
							<th>자산유형</th>
							<td>
								<input type="text" name="ak_nm2" id="ak_nm2" maxlength="30" size="18" readonly="readonly"></input>
								 <a href="#"  onclick="javascript: openConList()" class="table-edit-link">&nbsp;</a>
							</td>
		   				</tr>
		   				<tr>
							<th>컨테이너명</th>
							<td>
								<input type="text" name="racont_nm" id="racont_nm" maxlength="30"  size="18" onkeyup="javascript: inputCheckSpecial(this)"></input>
							</td>
		   				</tr>
		   				<tr>
							<th>구분</th>
							<td>
								<input type="radio" name="choice" id="choice1" value="1"></input><label for="choice1" style="cursor:pointer">공통</label>
								<input type="radio" name="choice" id="choice2" value="2" checked="checked"></input><label for="choice2" style="cursor:pointer">개별</label>
							</td>
		   				</tr>
	   				</tbody>
				</table>
				<table class="insertTable" style="width: 98%;">
		   			<tfoot>
		   				<tr>
		   					<td>
		                     	<div class="align-right"><a href="#" class="button" onclick="tracont1_insertAjax();; return false;"><span>저장</span></a>
		                     	<a href="#" class="button" onclick="javascript: claerContData()"><span>취소</span></a></div>
		                     </td>
		   				</tr>
		   			</tfoot>
		   		</table>
				</div>
			</div>
			 --%>
			<%--
			<table class="table-long">
      			<colgroup>
					<col width="45px"/>
					<col width="110px"/>
					<col width="110px"/>
					<col/>
					<col width="15px"/>
				</colgroup>
      			<thead>
      				<tr>
      					<td class="col-chk col-rowspanMid"><input type='checkbox' name='checkAllCon' onclick="javascript: selectAllCon()" style="cursor:pointer"></input></td>
      					<td>자산유형</td>
      					<td>분류기준</td>
      					<td>컨테이너명</td>
      					<td></td>
      				</tr>
      			</thead>
      		</table>
      		<form name="riskIDelForm2" action="riskIAction.do" method="post">
			<input type="hidden" name="mode" value="mrainfoCon_delete"></input>
            <input type="hidden" name="conPro_id" id="conPro_id" value="${sessionScope.lastProId }"></input>
           <div id="changeConDiv" style="overflow:auto; overflow-x: hidden; width: 100%; height: 176px">
	           <table class="table-long">
	           		<tr class="odd">
								<td style="text-align: center; height: 35px ; vertical-align: middle; " colspan="5" valign="middle">-정보 자산 목록을 선택해주시기바랍니다-</td>
					</tr>
	           </table>
           </div>
           </form>
            --%>
      	 </div>
      	 </form>
      	       	</div> <!-- RA 정보식별 끝 -->
      	       	
           	       	<!--RA정보-컨테이너 현황 -->
      	<div id="tabs-2" style="display:none">
      	
		<h4 class="white">RA정보-컨테이너 현황</h4>
    <div class="box-container1" style="padding:10px 0 0 0">     		
      		<table class="main_table" style="width: 740px; border: solid; border-color: black black #000000; border-width: 0px 0px 0px 0px; table-layout: fixed; padding:0px; margin: 0px" cellpadding="0" cellspacing="0">
      			<tr>
      				<td width="240px" style="vertical-align: top">
      					<table class="table-short2" style="width: 100%;">
      						<thead>
      							<tr>
      								<td style="padding-left: 10px">정보코드</td>
      								<td>정보명</td>
      							</tr>
      						</thead>
      					</table>
      				</td>
      				<td style="vertical-align: top">
      					<div id="topLine" style="width: 483px; overflow: hidden;">
      						<table class="table-short2" style="width: ${fn:length(alist)*100 }px;">
      						<colgroup>
      						<c:forEach begin="1" end="${fn:length(alist)}">
      							<col width="100px"/>
      						</c:forEach>
      						</colgroup>
      							<thead>
	      							<tr>
	      								<c:forEach var="list" items="${requestScope.alist}" varStatus="status">
	      									<td><div class="ellipsis"  style="width:100%;" title="${list.ak_nm2 }">${list.ak_nm2 }</div></td>
				                    		<%--<th id="th${status.index+1 }">${list.ak_nm2 }<input type="hidden" id="thHidden${status.index+1 }" value="${list.base_lev1 }"></input></th> --%>
				                   		 </c:forEach>
	      							</tr>
		                   		 </thead>
      						</table>
      					</div>
      				</td>
      			</tr>
      			<tr>
      				<td width="240px" valign="top" style="vertical-align: top">
      					<div id="leftDisplay" style="width: 240px; height: 375px; overflow: hidden;">
      						<table class="table-short2" style="width: 100%">
	      						<thead>
	      							<c:forEach var="metList" items="${requestScope.metList}" varStatus="status">
	      								<tr>
	      									<td height="15px" style="padding-left: 10px" class="side">
	      									
	      									
	      									<c:choose>
	      										<c:when test="${requestScope.rainfoId == null}">
      												<c:set var="rainfoId" scope="request" value="${metList.rainfo_id }"></c:set>
      												<div class="ellipsis"  style="width:100%;" title="${metList.rainfo_id }">${metList.rainfo_id }</div>
	      										</c:when>
	      										<c:when test="${requestScope.rainfoId != null && metList.rainfo_id==requestScope.rainfoId}">
      												&nbsp;
	      										</c:when>
	      										<c:when test="${requestScope.rainfoId != null && metList.rainfo_id!=requestScope.rainfoId}">
      												<c:set var="rainfoId" scope="request" value="${metList.rainfo_id }"></c:set>
      												<div class="ellipsis"  style="width:100%;" title="${metList.rainfo_id }">${metList.rainfo_id }</div>
	      										</c:when>
	      									</c:choose>
	      									
	      									
	      									
	      										
	      										
	      										
	      									</td>
	      									<td class="side">
	      										
	      										
	      										<%--<div class="ellipsis"  style="width:100%;" title="${metList.rainfo_nm }">${metList.rainfo_nm }</div> --%>
	      										
     										<c:choose>
	      										<c:when test="${requestScope.rainfoNm == null}">
      												<c:set var="rainfoNm" scope="request" value="${metList.rainfo_nm }"></c:set>
      												<div class="ellipsis"  style="width:100%;" title="${metList.rainfo_nm }">${metList.rainfo_nm }</div>
	      										</c:when>
	      										<c:when test="${requestScope.rainfoNm != null && metList.rainfo_nm==requestScope.rainfoNm}">
      												&nbsp;
	      										</c:when>
	      										<c:when test="${requestScope.rainfoNm != null && metList.rainfo_nm!=requestScope.rainfoNm}">
      												<c:set var="rainfoNm" scope="request" value="${metList.rainfo_nm }"></c:set>
      												<div class="ellipsis"  style="width:100%;" title="${metList.rainfo_nm }">${metList.rainfo_nm }</div>
	      										</c:when>
	      									</c:choose>
	      										
	      										
	      									</td>
	      								</tr>
			                   		 </c:forEach>
	      						</thead>
	      					</table>
      					</div>
      				</td>
      				<td width="700px" valign="top">
      					<div id="mainDisplay" style="width: 500px; height: 392px; overflow: auto; overflow-y: scroll;" onscroll="scrollAll()">
      						<table class="table-short2" style="width: ${fn:length(alist)*100 }px">
      						<colgroup>
      						<c:forEach begin="1" end="${fn:length(alist)}">
      							<col width="100px"/>
      						</c:forEach>
      						</colgroup>
	      						<tbody>
	      							<c:forEach var="metList" items="${requestScope.metList}" varStatus="status">
	      								<tr>
	      									<c:forEach var="met" items="${metList}">
	      									<td class="col-rowspanMid" height="15px">
	      										<c:if test="${fn:substring(met.key,0,5)=='ak_id'}">
	      											<div class="ellipsis"  style="width:100%;" title="${met.value }">${met.value }</div>
      											</c:if>
      										</td>
      										</c:forEach>
      									</tr>
      								</c:forEach>
	      						</tbody>
	      					</table>
      					</div>
      				</td>
      			</tr>
      		</table>
   	</div><!-- end of div.box-container1 -->      	
      	
      		       	
      	</div>   	
      	       	
      	       	
      	       	<!-- RA 정보평가 시작 -->
      	<div id="tabs-3" style="display:none">
      	 	      		<h4 class="white">
      			<span class="align-left">RA정보평가</span>
	      		<span class="align-right">상태 :
		      		<c:choose>
		      			<c:when test="${sessionScope.magamSession[0].state =='Y'}">
		      				 마감
		      			</c:when>
		      			<c:otherwise>
		      				 착수
		      			</c:otherwise>
		      		</c:choose>
	      		</span>
      		</h4>
        <div class="box-container1">     		
        	<table class="table-long">
      			<tfoot>
      				<tr>
      					<td>
      						<div class="align-left subjectTitle"> ■ RA정보목록 
      						&nbsp;
      						<a href="#" class="button1 firstButton"><span style="font-size: small; font-weight:normal;">평가 완료 / 전체 : ${requestScope.pyungCount } / ${fn:length(plist)}</span></a>
      						</div>
      						
                        	<div class="align-right">
                        	<a href="riskIAction.do?mode=exmrainfop&searchText=${param.searchText1 }" class="button"><span>엑셀</span></a> 
                        	
                        	<c:choose>
	                        		<c:when test="${sessionScope.magamSession[0].state !='Y'}">
	                        		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
	                        			<a href="#" class="button lastButton" onclick="javascript: riskIDelete4()"><span>삭제</span></a>
	                        		</c:when>
	                        		<c:otherwise>
	                        			<a href="#" class="button1 addMargin lastButton" onclick="return false" ><span>삭제</span></a>
	                        		</c:otherwise>
	                        	</c:choose>
                        	</div>
                        	
                        	<!-- 검색 -->
      						<div class="align-right" style="margin-right: 15px">
	      						<span style="width: 22px; height: 22px; background: url('img/icon-view-info.gif') no-repeat scroll right center transparent;  overflow: hidden;display:inline-block;"></span>
	      						<span style="vertical-align: top"><input name="searchText1" type="text" id="searchText1" style="width:140px;" value="${param.searchText1 }" /></span>
	      						<span><a href="#" class="button rightNoMargin verticTop" onclick="searchText1('mrainfo',3)"><span>조회</span></a></span>
      						</div>
                        </td>
      				</tr>
      				<tr><td class="spaceLine"></td></tr>
      			</tfoot>
      		</table>
      		 <form name="riskIDelForm4" action="riskIAction.do" method="post" >
	        	<input type="hidden" name="mode" value="mrainfop_delete"></input>
   	        	<input type="hidden" name="reloadPageName" value="#tabs-3"></input>
	        	<input type="hidden" name="pro_id" value="${sessionScope.lastProId }"></input>
      		<table class="table-long">
      			<colgroup>
				<!-- ie67인지 아닌지 판단 (위=ie)(아래는 그외)--> 
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="46px"/>
							<%--<col width="71px"/> --%>
							<col width="102px"/>
							<col width="48px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col width="30px"/>
							<col width="30px"/>
							<col width="30px"/>
							<col width="88px"/>
							<col width="92px"/>
							<col/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="45px"/>
							<%--<col width="80px"/> --%>
							<col width="111px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="100px"/>
							<col width="100px"/>
							<col/>
							<col width="15px"/>
						</c-rt:otherwise>
					</c-rt:choose>				
				</colgroup>
      			<thead>
      				<tr>
      					<td class="col-chk" rowspan="2"><input type='checkbox' name='checkAll4' onclick="javascript: selectAll4()" class="chkCursor"></input></td>
      					<%--<td class="col-rowspanMid" style="padding-left: 0px" rowspan="2">정보코드</td> --%>
      					<td class="col-rowspanMid" style="padding-left: 0px" rowspan="2">정보명칭</td>
      					<td colspan="6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      					RA정보가치평가</td>
      					<td colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      					RA정보보안요구사항</td>
      					<td></td>
      				</tr>
      				<tr>
      					<td>보안점수</td>
      					<td>보안등급</td>
      					<td>기밀등급</td>
      					<td>C</td>
      					<td>I</td>
      					<td>A</td>
      					<td>기밀성</td>
      					<td>무결성</td>
      					<td>가용성</td>
      					<td></td>
      				</tr>
      			</thead>
      		</table>
      		<div class="scrollDIV" style="height: 460px;">
      		<table class="table-long">
      			<colgroup>
				<c-rt:choose>
					<c-rt:when test="${isMSIE67}">
							<col width="46px"/>
							<col width="99px"/>
							<col width="51px"/>
							<col width="51px"/>
							<col width="51px"/>
							<col width="26px"/>
							<col width="26px"/>
							<col width="26px"/>
							<col width="88px"/>
							<col width="88px"/>
							<col/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="45px"/>
							<col width="111px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="100px"/>
							<col width="100px"/>
							<col/>
							<col width="15px"/>
					</c-rt:otherwise>
				</c-rt:choose>
			</colgroup>
      			<tbody>
      				<c:choose>
                    	<c:when test="${fn:length(plist)!= 0}">
                       	<c:forEach var="list" items="${requestScope.plist}" varStatus="status">
                   			<%--
                   			<tr onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');" class="odd">
                   			 --%>
                   			 <tr <c:if test="${status.index%2==0 }">class="odd"</c:if> onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');">
                    			<td class="col-chk"><input type="checkbox" name="check4" id="check40${status.index+1 }" value='${list.rainfo_id}' class="chkCursor"></input></td>
                    			<%--
                    			<td>
                   				<!-- ie6에서 한글 깨짐 방지를 위한 전달 방법 -->
	                    			<c:url var="url" value="riskIAction.do">
	                    				<c:param name="mode" value="mrainfop_updatePage"/>
									    <c:param name="rainfo_id" value="${list.rainfo_id }"/>
									</c:url>
	                    				<div class="ellipsis"  style="width:100%;">
	                    				<a href="<c:out value="${url}"/>" class="nor ellipsis" title='${list.rainfo_id }'>${list.rainfo_id }</a>
	                    				</div>
                    			</td>
                    			 --%>
                    			<td>
                    			<!-- ie6에서 한글 깨짐 방지를 위한 전달 방법 -->
	                    			<c:url var="url" value="riskIAction.do">
	                    				<c:param name="mode" value="mrainfop_updatePage"/>
									    <c:param name="rainfo_id" value="${list.rainfo_id }"/>
									</c:url>
	                    				<div class="ellipsis"  style="width:100%;">
	                    				<a href="<c:out value="${url}"/>" class="nor ellipsis" title='${list.rainfo_nm }'>${list.rainfo_nm }</a>
	                    				</div>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					&nbsp;&nbsp;&nbsp;&nbsp;<fmt:formatNumber value="${list.t_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;">${list.ascu_level }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;">${list.asc_level }</div>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					<fmt:formatNumber value="${list.c_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					<fmt:formatNumber value="${list.i_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					<fmt:formatNumber value="${list.a_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.c_memo }">${list.c_memo }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.i_memo }">${list.i_memo }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.a_memo }">${list.a_memo }</div>
                    			</td>
	   					 	<td></td>
                    		</tr>
                    	</c:forEach>
                    	</c:when>
                    	<c:otherwise>
                    		<tr class="odd">
								<td colspan="13" class="noDataTD">-데이터가 없습니다-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
      			</tbody>
      		</table>  	
      		</div>
      		</form>
      	</div><!-- end of div.box-container1 -->
      	 	
      	 	
      	 </div><!-- RA 정보평가 끝 -->
      	 </div> <!-- 탭 끝 -->
      	</div> <!-- end of div.box -->

      	
</body>
</html>